package com.yusheng.service;


import com.yusheng.domain.R;

import java.io.IOException;

/**
 * 验证码处理
 *
 * @author yusheng
 */
public interface ValidateCodeService {
    /**
     * 生成验证码
     */
    public R<?> createCaptcha() throws Exception;

    /**
     * 校验验证码
     */
    public void checkCaptcha(String key, String value) throws Exception;
}
